package utils;

public class UtilClassType {
	
	public static boolean isSimpleType(Class clazz){
		if(clazz.isPrimitive() || Number.class.isAssignableFrom(clazz) || clazz==Boolean.class || clazz==String.class)
			return true;
		return false;
	}
	
	public static void main(String...args) {
		System.out.println(isSimpleType(int.class));
		System.out.println(isSimpleType(Integer.class));
		System.out.println(isSimpleType(boolean.class));
		System.out.println(isSimpleType(Boolean.class));
		System.out.println(isSimpleType(String.class));
		
		System.out.println(isSimpleType(UtilClassType.class));
	}
}
